package com.action.library;

import java.util.ArrayList;

import com.bean.library.StatisticPaper;
import com.dao.DaoManager;
import com.dao.library.PaperDao;

public class TGetSelfPapersAction {
	public ArrayList<StatisticPaper>[] getselfPapers(String teacherId,String courseId){
		DaoManager dm = DaoManager.getInstance();
		PaperDao paperDao = dm.getDao(PaperDao.class);
		ArrayList<StatisticPaper>[] selfPapers=null;
		try
		{
			dm.begin();
			selfPapers = paperDao.getStatisticPaper(teacherId, courseId);
			dm.commit();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		finally 
		{
			dm.end();
		}
		return selfPapers;
	}
}
